#pragma once

#include <Windows.h>

class clkTimer
{
protected:
	bool m_tmrFirst;

	INT64 m_tmrFrequency;
	INT64 m_tmrStart;
	float m_tmrTicks;
	float m_tmrTime;
	float m_tmrPrevious;
	float m_tmrElapsed;

	float m_tmrFPS;
	float m_tmrFPSStart;
	float m_tmrFPSCount;
public:
	clkTimer();
	~clkTimer();

	void initTimer();
	void shutTimer();

	void updateTime();
	void resetTime(){m_tmrFirst=true;}

	float getElapsed(){return m_tmrElapsed;}
	float getTime(){return m_tmrTime;}
	float getFPS(){return m_tmrFPS;}
};